<include file="Public/min-header"/>
<style>
.school{
  display: none;
  padding: 0 50px 0 50px;
}
.subject{
  display: none;
  padding: 0 50px 0 50px;
}
.lesson{
  display: none;
  padding: 0 50px 0 50px;
}
.user_name{
  border:1px solid #999;
  width: 100px;
  padding: 5px;
}
.user_name:hover{
  cursor: pointer;
  background: #999;
}
</style>
<div class="wrapper">
     	<section class="content">
        <div class="row">
  			     <div class="col-md-12">
  			        <div class="box box-info">
                  <div style="padding:50px 0 50px 100px; border-bottom:1px solid red;">
                    <p onclick="tab()" style="cursor:pointer;">特殊功能</p>
                    <ul class="user_name_ul" style="list-style:none; display:none;">
                      <foreach name="add_article_user" item="v" key="k">
                        <li class="user_name" onclick="get_article_num('{$v[user_name]}')">{$v[user_name]}<span style="display:inline-block;width:100px;height:25px;border:1px solid #999;position: absolute;left:240px;" id="{$v[user_name]}"></span></li>
                      </foreach>
                    </ul>
                  </div>
                  <form class="form-horizontal" action="{:U('Adult/add_seohandle')}" method="post">
                    <div class="box-body">
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">成考资讯</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="chengkao">{$second_seo['chengkao']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">函授资讯</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="hanshou">{$second_seo['hanshou']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">夜大资讯</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="yeda">{$second_seo['yeda']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">招生院校</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="yuanxiao">{$second_seo['yuanxiao']}</textarea>
  	                    </div>
                        <div class="clickschool col-sm-1" style="background:#999;">点我点我</div>
                      </div>
                      <div class="form-group school">
  	                    <label class="control-label col-sm-2">招生简章</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="jianzhang">{$second_seo['jianzhang']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group school">
  	                    <label class="control-label col-sm-2">院校新闻</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="xinwen">{$second_seo['xinwen']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">招生专业</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="zhuanye">{$second_seo['zhuanye']}</textarea>
  	                    </div>
                        <div class="clicksubject col-sm-1" style="background:#999;">点我点我</div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">经管类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="jingguan">{$second_seo['jingguan']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">文史类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="wenshi">{$second_seo['wenshi']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">理学类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="lixue">{$second_seo['lixue']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">工科类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="gongke">{$second_seo['gongke']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">教育类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="jiaoyu">{$second_seo['jiaoyu']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">医学类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="yixue">{$second_seo['yixue']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">农学类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="nongxue">{$second_seo['nongxue']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group subject">
  	                    <label class="control-label col-sm-2">艺术类</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="yishu">{$second_seo['yishu']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">成考专题</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="zhuanti">{$second_seo['zhuanti']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">复习指导</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="fuxi">{$second_seo['fuxi']}</textarea>
  	                    </div>
                        <div class="clicklesson col-sm-1" style="background:#999;">点我点我</div>
                      </div>
                      <div class="form-group lesson">
  	                    <label class="control-label col-sm-2">网络课程</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="wangluo">{$second_seo['wangluo']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group lesson">
  	                    <label class="control-label col-sm-2">面授课程</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="mianshou">{$second_seo['mianshou']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group lesson">
  	                    <label class="control-label col-sm-2">复习资料</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="ziliao">{$second_seo['ziliao']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">面试求职</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="mianshi">{$second_seo['mianshi']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
  	                    <label class="control-label col-sm-2">职位晋升</label>
  	                    <div class="col-sm-8">
  				                    <textarea class="form-control" name="qiuzhi">{$second_seo['qiuzhi']}</textarea>
  	                    </div>
                      </div>
                      <div class="form-group">
                      	<div class="col-sm-8">
                      	  	<button type="submit"  lass="btn btn-info pull-right" style="background:#337ccc;border:0;border-radius:5px;font-size:16px;color:#fff;">提交</button>
                      	</div>
                      </div>
                    </div>
                  </form>
                </div>
            </div>
  	   </div>
  	</section>
  </div>
  <script>
  $(function(){
    $(".clickschool").on("click",function(){
      if($(".school").css("display") == "none"){
        $(".school").css("display","block");
      }else{
        $(".school").css("display","none");
      }
    })
    $(".clicksubject").on("click",function(){
      if($(".subject").css("display") == "none"){
        $(".subject").css("display","block");
      }else{
        $(".subject").css("display","none");
      }
    })
    $(".clicklesson").on("click",function(){
      if($(".lesson").css("display") == "none"){
        $(".lesson").css("display","block");
      }else{
        $(".lesson").css("display","none");
      }
    })
  })

  function get_article_num($str){
    $.ajax({
          type : "POST",
          url : "{:U('Adult/add_seo')}",
          data : {
              "user_name" : $str
          },
          success : function($res) {
             $index=$res.indexOf("<!");
             $res=$res.substring(1,$index-1);
             $("#"+$str+"").html($res);
          }
      });
  }

  function tab(){
    if($(".user_name_ul").css("display") == 'none'){
      $(".user_name_ul").css("display","block");
    }else{
      $(".user_name_ul").css("display","none");
    }
  }
  </script>
</body>
</html>
